
//
//  LDY_ArticleModel.m
//  ProjectOfBStage
//
//  Created by dlios on 15/11/14.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "LDY_ArticleModel.h"

@implementation LDY_ArticleModel

- (void)dealloc
{
    [_html release];
    [_contentid release];
    [_uid release];
    [_uname release];
    [_icon release];
    [_desc release];
    [_comment release];
    [_like release];
    [_pic release];
    [_text release];
    [_url release];
    [_title release];
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"userinfo"]) {
        self.uid = [value objectForKey:@"uid"];
        self.uname = [value objectForKey:@"uname"];
        self.icon = [value objectForKey:@"icon"];
        self.desc = [value objectForKey:@"desc"];
    }
    if ([key isEqualToString:@"counterList"]) {
        self.comment = [value objectForKey:@"comment"];
        self.like = [value objectForKey:@"like"];
    }
    if ([key isEqualToString:@"shareinfo"]) {
        self.pic = [value objectForKey:@"pic"];
        self.text = [value objectForKey:@"text"];
        self.url = [value objectForKey:@"url"];
        self.title = [value objectForKey:@"title"];
    }
    
}



@end

